package com.tanhua.dubbo.api;

import com.tanhua.model.mogo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    /**
     * 查询好友动态
     * @param id
     * @param page
     * @param pagesize
     * @return
     */
    public List<Movement> FindByFridends(Long id, Integer page, Integer pagesize) ;

    /**
     * 发布动态
     * @param movement
     */
    public void movements(Movement movement);

    /**
     * 查看个人动态
     * @param userId
     * @param page
     * @param pagesize
     * @return
     */
    public PageResult FindByUserId(Long userId, Integer page, Integer pagesize);

    /**
     * 动态推荐
     * @param pids
     * @return
     */
    public List<Movement> findMovementByPids(List<Long> pids);

    /**
     * 随机推荐
     * @param count
     * @return
     */
    public List<Movement> randomMovements(Integer count);

    /**
     * 查询单个动态
     * @param movementId
     * @return
     */
    public Movement FindById(String movementId);
}
